#!/bin/bash

# 快速编译主要文件测试
echo "快速编译测试..."
g++ -I../cbp2make/lib -I../cbp2make/lib/tinyxml -I../cbp2make/src -Ilib -Isrc \
    -Wall -std=c++11 -DAICODER_ENHANCED -m64 -D__WXMSW__ -DwxUSE_UNICODE \
    -o quick_test \
    src/aicoder_enhancements.cpp \
    ../cbp2make/src/cbp2make.cpp \
    ../cbp2make/src/cbproject.cpp \
    ../cbp2make/lib/stlstrings.cpp \
    ../cbp2make/lib/tinyxml/tinyxml.cpp

if [ $? -eq 0 ]; then
    echo "✅ 快速编译成功"
    rm -f quick_test
else
    echo "❌ 快速编译失败"
fi
